package cn.teammade.sms.api.model;

import java.io.File;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 邮件实体
 * 
 * @author yi.wang
 * @date 2017年1月19日
 */
public class EmailModel implements Serializable {

	private static final long serialVersionUID = 1L;

	// 操作人（必填）
	private String operator;

	// 发送人（必填）
	private String[] sendTo;

	// 抄送人
	private String[] cc;

	// 密送人
	private String[] bcc;

	// 邮件主题（必填）
	private String subject;

	// 直接发送邮件内容时使用
	private String content;

	// 邮件模板方式的Mime邮件使用
	private Map<String, Object> contentMap;

	// 邮件附件
	private LinkedHashMap<String, File> attamentMap = new LinkedHashMap<>();

	// 是否记录发送邮件历史,默认记录
	private Boolean isHistory = true;

	public String[] getSendTo() {
		return sendTo;
	}

	public void setSendTo(String[] sendTo) {
		this.sendTo = sendTo;
	}

	public String[] getCc() {
		return cc;
	}

	public void setCc(String[] cc) {
		this.cc = cc;
	}

	public String[] getBcc() {
		return bcc;
	}

	public void setBcc(String[] bcc) {
		this.bcc = bcc;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public Map<String, Object> getContentMap() {
		return contentMap;
	}

	public void setContentMap(Map<String, Object> contentMap) {
		this.contentMap = contentMap;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public LinkedHashMap<String, File> getAttamentMap() {
		return attamentMap;
	}

	public void setAttamentMap(LinkedHashMap<String, File> attamentMap) {
		this.attamentMap = attamentMap;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Boolean getIsHistory() {
		return isHistory;
	}

	public void setIsHistory(Boolean isHistory) {
		this.isHistory = isHistory;
	}

}
